import clickoutside from './clickoutside'
import clickdom from './clickdom'

const directives=[
    {name:'click-outside',directive:clickoutside},
    {name:'click-dom',directive:clickdom},
]

function globalDirectives(Vue){
    directives.forEach(item=>{
        Vue.directive(item.name,item.directive);
    })
}

export default globalDirectives